package com.monster.dict.domain.common;


import jakarta.validation.GroupSequence;

/**
 * 校验分组
 */
public interface DictValidGroup {

    /**
     * 新增的校验顺序
     */
    @GroupSequence({
            Group.Code.class,
            Group.Name.class,
            Group.Type.class,
            Group.LockState.class,
            Group.Detail.class
    })
    interface Insert {
    }

    /**
     * 修改的校验顺序
     */
    @GroupSequence({
            Group.Id.class,
            Group.Name.class,
            Group.LockState.class,
            Group.Detail.class
    })
    interface Update {
    }

    /**
     * 查询的校验顺序
     */
    @GroupSequence({
            Group.Code.class,
            Group.Name.class,
            Group.Type.class,
            Group.LockState.class,
            Group.State.class
    })
    interface Query {
    }


    interface Group {
        interface Id {
        }

        interface Code {
        }

        interface Name {
        }

        interface Type {
        }

        interface LockState {
        }

        interface Detail {
        }

        interface State {

        }
    }
}
